import {Component} from 'react'

class Child extends Component{

    constructor(props){
        super(props)
    }
    render(){
        return (
           <div>
               <h1>子组件</h1> 
               <h2>子组件显示的：{this.props.data}</h2>  
           </div> 
        )

    }
}

export default Child
